$(document).ready(function() {
	addNavigation();
	$("#nav a[href=html/home.html]").click();
});

function addNavigation(){
	$("#nav a").click(function(event){
		var link = $(this);
		$("#content").hide().load(link.attr("href"),function(){
			var hrf =  "js" + link.attr("href").replace(/(html)|(\.html)/ig,"") + "-actions.js";
			$.getScript(hrf, docReady());
		}).fadeIn("slow");
		event.preventDefault();
	});
}
